"use strict";
cc._RF.push(module, 'aaa26eUO4NPPpi+LIF5nstq', 'gkcell');
// script/gkcell.js

'use strict';

var global = require('global');

cc.Class({
				extends: cc.Component,

				properties: {
								gklabel: cc.Label,
								gkbtn: cc.Button,
								_gkid: 0
				},

				onLoad: function onLoad() {
								var _this = this;

								cc.director.once('qkcell', function (e) {
												_this._gkid = e.detail;
												_this.gklabel.string = e.detail;
												if (_this._gkid <= global.gkjindu) {
																_this.gkbtn.node.color = new cc.color(255, 255, 255);
												}
												//cc.log('gkcell======e.detail='+e.detail+',global.gkjindu='+global.gkjindu);
								}, this);
				},
				onBtnClick: function onBtnClick() {
								if (this._gkid <= global.gkjindu) {
												cc.director.emit('qkclick', this._gkid);
								}
								//cc.log('gkcell=======this._gkid'+this._gkid);
				}
}

// update (dt) {},
);

cc._RF.pop();